Meta description:
When performing an action that uses the Electric element, the character may spend 3 SP to apply a reactive electrical discharge effect to themselves. For the next 5 seconds, if a creature hits the character with a melee action, they can use the discharge without using a reaction and the attacking creature immediately suffers 1d6 Electric damage. This damage is applied after the triggering melee hit is confirmed. The effect remains active for the full 5-second duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 5 seconds; the effect does not stack and cannot trigger more than once per application.
-
Name:
mStaticDischargeI
-
Displayed name:
Static discharge I
-
Description:
When performing an action that uses the Electric element, the character may spend 3 SP to apply a reactive electrical discharge effect to themselves. For the next 5 seconds, if a creature hits the character with a melee action, they can use the discharge without using a reaction and the attacking creature immediately suffers 1d6 Electric damage. This damage is applied after the triggering melee hit is confirmed. The effect remains active for the full 5-second duration or until it has been triggered once, whichever occurs first. If the effect is triggered, it ends immediately after dealing damage. Reapplying this effect while it is already active resets the duration to 5 seconds; the effect does not stack and cannot trigger more than once per application.
-
Cost:
expCost(500,500)-0
-
Script:
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Condition:
action:tagsContain([[electricDamage]]) or action:tagsContain([[electric]])
-
Description:
-
Variables:
vStaticDischargeDuration = 5 vStaticDischargeDamage = 1
-
Script:
-
Action effects:
-
Use case:
vUseStaticDischarge
-
Name:
Static discharge
-
Description:
You can spend 3 SP to gain a Static discharge for vStaticDischargeDuration.string seconds that deals vStaticDischargeDamage.string d6 Electric damage.
-
Script:
if character:has([[mStaticDischarge]]) then mStaticDischarge = character.mStaticDischarge else mStaticDischarge = character:createEffect([[mStaticDischarge]]) mStaticDischarge.displayName:set([[Static discharge]]) mStaticDischarge.description:set([[If a creature hits the character with a melee action, they can use the discharge and the attacking creature immediately suffers {{vStaticDischargeDamage}}d6 Electric damage.]]) mStaticDischarge:activate() end mStaticDischarge.duration:set({{vStaticDischargeDuration}})
-
Variables:
vUseStaticDischarge = ToggleVariable([[vUseStaticDischarge]],[[Static discharge]])
-
-
-
Upgrades:
-
Name:
mStaticDischargeII
-
Displayed name:
Static discharge II
-
Description:
Increase the damage of the Static discharge to 2d6 and the duration to 6 seconds.
-
Cost:
expCost(1200,600)-250
-
Script:
master.displayName:set([[Static discharge II]]) master.description:replace([[1d6]],[[2d6]]) master.description:replace([[5 seconds]],[[6 seconds]]) master.addOns[1].variables:replace([[vStaticDischargeDamage = 1]],[[vStaticDischargeDamage = 2]]) master.addOns[1].variables:replace([[vStaticDischargeDuration = 5]],[[vStaticDischargeDuration = 6]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Name:
mStaticDischargeIII
-
Displayed name:
Static discharge III
-
Description:
Increase the damage of the Static discharge to 3d6 and the duration to 7 seconds.
-
Cost:
expCost(2150,700)-600
-
Script:
master.displayName:set([[Static discharge III]]) master.description:replace([[2d6]],[[3d6]]) master.description:replace([[6 seconds]],[[7 seconds]]) master.addOns[1].variables:replace([[vStaticDischargeDamage = 2]],[[vStaticDischargeDamage = 3]]) master.addOns[1].variables:replace([[vStaticDischargeDuration = 6]],[[vStaticDischargeDuration = 7]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Name:
mStaticDischargeIV
-
Displayed name:
Static discharge IV
-
Description:
Increase the damage of the Static discharge to 4d6 and the duration to 8 seconds.
-
Cost:
expCost(3250,800)-1075
-
Script:
master.displayName:set([[Static discharge IV]]) master.description:replace([[3d6]],[[4d6]]) master.description:replace([[7 seconds]],[[8 seconds]]) master.addOns[1].variables:replace([[vStaticDischargeDamage = 3]],[[vStaticDischargeDamage = 4]]) master.addOns[1].variables:replace([[vStaticDischargeDuration = 7]],[[vStaticDischargeDuration = 8]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-
Name:
mStaticDischargeV
-
Displayed name:
Static discharge V
-
Description:
Increase the damage of the Static discharge to 5d6 and the duration to 9 seconds.
-
Cost:
expCost(4550,900)-1625
-
Script:
master.displayName:set([[Static discharge V]]) master.description:replace([[4d6]],[[5d6]]) master.description:replace([[8 seconds]],[[9 seconds]]) master.addOns[1].variables:replace([[vStaticDischargeDamage = 4]],[[vStaticDischargeDamage = 5]]) master.addOns[1].variables:replace([[vStaticDischargeDuration = 8]],[[vStaticDischargeDuration = 9]])
-
Duration:
-1
-
Type:
0
-
Recurrent script:
-
Add ons:
-